package com.css.bjdt_core.report.entity;

import com.css.bjdt_core.util.DateUtil;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class RptTemplateUnitRela implements Cloneable {
	private String id;
	private String annualId;
	private String templateId;
	private Date startTime;
	private Date endTime;
	private List<String> unitIds;
	private String reportUnitId;
	private String fullName;
	private String relMan;
	private String sesssionDzzId;
	//校核类型1：校核表内和表间 2：只校核表间 3：只校核表内
	private String validationReportType;

	private String batchId;

	public String getStartTimeStr() {
		return DateUtil.format(getStartTime(), "yyyy-MM-dd");
	}
	public String getEndTimeStr() {
		return DateUtil.format(getEndTime(), "yyyy-MM-dd");
	}

	public String getStartEndTimeStr() {
		return getStartTimeStr() + "至" + getEndTimeStr();
	}
}
